package com.container.app;

import com.cache.app.Cacheable;

/**
 * Created with IntelliJ IDEA.
 * User: Georgiana.Scarlat
 * Date: 7/17/12
 * Time: 4:16 PM
 */
final class CacheableInstance implements Cacheable<Class> {

    private Object instance;

    CacheableInstance(Object object) {
        this.instance = object;
    }

    Object getInstance() {
        return instance;
    }

    public boolean isOutOfDate() {
        return false;
    }

    public Class getKey() {
        return instance.getClass();
    }
}
